package managedbean.SCM.ShippingOrder;

import entity.SCM.ShippingOrder;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import session.stateless.SCM.DeliveryOrderBeanLocal;

@ManagedBean (name = "viewShippingOrderManagerBean")
@ViewScoped
public class ViewShippingOrderManagerBean implements Serializable{

    public ViewShippingOrderManagerBean() {
    }
    
    @EJB
    private DeliveryOrderBeanLocal deliveryOrderBeanLocal;
    private ShippingOrder selectedShippingOrder;
    private String statusMessage;

    public ShippingOrder getSelectedShippingOrder() {
        return selectedShippingOrder;
    }

    public void setSelectedShippingOrder(ShippingOrder selectedShippingOrder) {
        this.selectedShippingOrder = selectedShippingOrder;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }
    
    public List<ShippingOrder> getShippingOrder(){
        return deliveryOrderBeanLocal.getShippingOrder();
    }
}
